//
//  GameViewController.h
//  MathKids
//
//  Created by Nguyen Huu Hien on 5/2/14.
//  Copyright (c) 2014 Nguyen Huu Hien. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Operator.h"
#import <AVFoundation/AVFoundation.h>
#import "Scores.h"

@interface GameViewController : UIViewController <UIAlertViewDelegate> {
    int timeCountdown;
    int timeCountdownlevel;
    int level;
    int score;
    int dau, so_1, so_2, so_3, kq, count, mode, dau_1, dau_2;
    int num_1, num_2, num_3, num_4;
    int kq_tu, kq_mau;
    NSString*str;
    NSMutableDictionary *dictionary_mode;
    NSDictionary *dictionary_sound_right;
    NSDictionary *dictionary_sound_wrong;
    NSDictionary *dictionary_sound_uplevel;
    AVAudioPlayer* audioPlayer;
    NSString *filePath;
    NSURL *fileURL;
}
@property (strong, nonatomic) IBOutlet UIImageView *imgTimer;
@property (strong, nonatomic) IBOutlet UIImageView *imgScore;
@property (strong, nonatomic) IBOutlet UILabel *lbResult;
@property (strong, nonatomic) IBOutlet UIButton *anw_1;
@property (strong, nonatomic) IBOutlet UIButton *anw_2;
@property (strong, nonatomic) IBOutlet UIButton *anw_3;
@property (strong, nonatomic) IBOutlet UIButton *anw_4;
- (IBAction)anwser:(id)sender;
- (IBAction)btn_sound_select:(id)sender;
@property (nonatomic, strong) NSTimer *timer;
@property (strong, nonatomic) IBOutlet UIImageView *imgLevel;
@property (strong, nonatomic) Operator *mathOperator;
@property (strong, nonatomic) AVAudioPlayer *audioPlayer;
@property (strong, nonatomic) NSMutableArray *arrScore;
@property (strong, nonatomic) IBOutlet UIButton *btn_sound;
@end
